import request from "@/utils/request";

//获取分类列表
export const getCategoryListApi = (id) => {
  return request.get("/category", { params: { id } });
};
//获取二级分类列表
export const getCategorySubListApi = (id) => {
  return request.get("/category/sub/filter", { params: { id } });
};
//获取基础商品列表
export const getSubCategoryListApi = (data) => {
  return request.post("/category/goods/temporary", { data });
};
